#include <stdio.h>

void del_ast(char* str, char* str_re)
{
    char* p_begin = str;
    char* p_last = NULL;
    while (*p_begin++ == '*');
    p_begin --;
    p_last = p_begin;
    while (*++p_last);
    p_last --;
    while (*p_last == '*')p_last--;
    while (p_begin <= p_last)
    {
        *str_re++ = *p_begin++;
    }
    *str_re = 0;
}

int main()
{
    char str[80];
    char str_re[80];
    scanf("%s", str);
    del_ast(str, str);
    printf("%s\n", str);
    return 0;
}